The building has 27,651 Sq meters. It would cost (with discount) $60m and it would cost (for commercial renovation, according to the article) $50 if we assume the conversion to residential is going to be the same.
An average 2 Bedroom is 150 Sq meters. If we assume an 80% usage capacity (some space has to go for the gym, I guess), then we get 147 apartments. Or $750K per apartment. Obviously, there will be other costs (taxes, finder fees, city, whatever) so let's say $850K per apartment to be safe.
This is an insane price for an apartment; however, this is a competitive price for SF. The people who did a 80% discount on this, seems to have reasonable math pricing in that most of the "value" of the building was derived from the scarcity of commercial building and demand. The new "value" might have been priced based on the residential market.