How to Check for a given type?

BlitzMax Forums/BlitzMax Beginners Area/How to Check for a given type?

If TList(hello) Then Print "hello is a TList"
If TPixmap(hello) Then Print "hello is a TPixmap"
etc.
Notice that byte, int, float, etc. may be converted to each other by using a similar approach, so I'm not sure how you would handle that...