Getting the field type in a macro

Hi,

I have a macro that’s iterating through the fields of my content item and I want to identify what type of field each one is so that I can do the correct String or Date call on it.
If I add getType() to my field I end up with a numeric value which I think I can translate into String, Date, etc but I assume these numeric types are defined somewhere?

Any help appreciated,
Nick.