field type extraction for records