I got a neat little function for doing those conversions for me:
#include <sstream>
#include <string>
template< class Type >
std::string ConvertToString( const Type &aValue )
{
std::stringstream stream;
stream << aValue;
return stream.str();
}
int main()
{
int foo = 5;
float bar = 1.27f;
std::string text = ConvertToString< int >( foo );
text += ConvertToString< float >( bar );
return 0;
}