An existing eight-story building will be converted into apartments — and connected to a new 27-story residential tower.