parse values to an assumed type