try to automatically convert the value into the field type