`boost::lexical_cast` is your friend