chr2num function

Check character values for date/numeric/logical and change datatype