I'd suggest using a type switch for based on the field types.