feat: add Type::is_field
and Type::as_integer
#5670
Merged
Type::is_field
and Type::as_integer
#5670