If you want to check the type of the variable its good, but if you want to check the contained of the variable its not a good solution :)

E.g : If you create a string var, and that you put a...