In an agreement with the state to convert the structure into 148 affordable apartments as part of a larger redevelopment effort underway in Magnuson Park, which also includes 106 new units for homeless families, an art gallery, an events space and a community center.