Try to cast date/time/datetime values to str before parsing

Possible fix for #669