I think the function you want is TypeName... which returns a literalspecifying the type of a variable. You can see quite a bit more in Help.