How to determine type and definition of a variable in Monkey C?

I've noticed that some object variables will change their types and it can cause exceptions.  Is there a way to test the variable type?

For example I've seen one variable go through a variety of types:

x=null

x=[null, null]

x=[float, float]

I'd like to be able to test for these cases. How is this typically done?

Thanks.