Converts a field value to the appropriate type based on the field type.
The type of the field.
The value of the field.
Converts a field value to the appropriate type based on the field type.