handle typing of the type field for a field