parse enum field type