you can use std::to_string or boost::lexical_cast