Fix parseValue for integer, float and date types