title: How to detect if a property is numeric type in haxe?
body: <p>I need to detect if a property of an object is numeric or not ( Int or Float )
  What I have is the object reference, and property name as string</p>
  
  <p>Here is my implementation, <code>compoent</code> is the object reference, but it didn't work</p>
  
  <pre><code>public function IsNumeric():Bool
      {
          if (Std.is(Type.typeof(Reflect.getProperty(compoent, propertyName)), Int)) return true;
          if (Std.is(Type.typeof(Reflect.getProperty(compoent, propertyName)), Float)) return true;
          return false;
      }
  </code></pre>
  
  <p>Any one can help?</p>