The Boost Numeric Conversion library is a collection of tools to describe and perform conversions between values of different numeric types.
The documentation for the library can be found here