# How do I get any variable’s DataType?

**URL:** <https://forum.kirupa.com/t/how-do-i-get-any-variable-s-datatype/225781>\
**Category:** flash\
**Created:** [May 15, 2007, 4:33pm UTC](https://forum.kirupa.com/t/how-do-i-get-any-variable-s-datatype/225781 "2007-05-15T16:33:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aesir](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@Aesir](https://forum.kirupa.com/u/Aesir)\
**Post date:** [May 15, 2007, 4:33pm UTC](https://forum.kirupa.com/t/how-do-i-get-any-variable-s-datatype/225781/1 "2007-05-15T16:33:11Z")

</div>

Problem:

```auto

var num:Number = 1;
trace(num == Number); // false

```

How do I get the datatype of a variable? In this case it is pretty obvious, but I am trying to make a substitute for function overloading in a class.

Thanks
