Can't lexical_cast do the same thing?