title: Divide object of type Integer and Double
body: <p>I want to divide a number by 100 and number is of Object type.</p>
  
  <pre><code>Object a = 33;
  Object b = .33;
  
  
  Double d = (Double) a / 100;
  Double e = (Double) b / 100;
  </code></pre>
  
  <p>First, I had type cast to Double, but it's failing "Cannot cast numeric value to java.lang.Double" for Integer.</p>
  
  <p>Do I need to check instance before dividing? I am new and not sure what is correct way to do it?</p>
  
  <p><strong>EDIT:</strong> I cannot avoid Object</p>