simplify the code (calls to both const and non-const versions of get<double>() convert int64 values to double)
add doc