C++11: data conversion to use boost lexical_cast

For C++11 version of the library