[FIX] fixed lexical_cast to accept Segment for integer types