title: convert int to BigInteger
body: <p>I am using <code>uniqueresult()</code> method present in the <code>org.hibernate.Query</code> class whose return type is <code>Object</code>. </p>
  
  <p>In my case i am holding this result in <code>BigDecimal</code> class. Now, this is  throwing <code>ClassCastException ( java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.Integer)</code>.</p>
  
  <p>I tried with <code>BigInteger</code> also, same kind of exception.</p>
  
  <p>Can you please help on  how to cast this kind of result.</p>