C++98: data conversion to use boost lexical_cast

For C++98 version of the library