Define a util method to convert a type value to the type's name