safe_cast: doc bits and simplify the float -> integral conversion.