A building that has long sat vacant in downtown Binghamton has been converted into a $45 million affordable housing complex.