safe_cast: documentation and change the implementation to mirror convert_to.
convert_to: minor typo fix.