title: How to check if a boxed numeric value is negative?
body: <p>Hmm, this may seems a simple question, but I would like to know the fastest way.</p>
  
  <p>I have an object which is a boxed number, I don't know is it <code>double</code>, <code>int</code>, or some numeric type. I want to check if the boxed value is negative.</p>
  
  <p>I use this conversion but I am not sure if it is as fast as can be:</p>
  
  <pre><code>private bool CheckNegative(object number)
  {
     return System.Convert.ToDouble(number) &lt; 0;
  }
  </code></pre>
  
  <p>Arsen</p>