title: Oracle ADF: Cannot convert 1 of type class java.math.BigDecimal to class oracle.jbo.domain.Number
body: <p>This question look stupid but not realy.
  Cannot convert 1 of type class java.math.BigDecimal to class oracle.jbo.domain.Number</p>
  
  <p>How to convert <br></p>
  
  <ol>
  <li><code>oracle.jbo.domain.Number into java.math.BigDecimal</code></li>
  <li><code>java.math.BigDecimal into oracle.jbo.domain.Number</code></li>
  </ol>
  
  <p>I get the Answer number one: </p>
  
  <pre><code> oracle.jbo.domain.Number value = (Number)valueChangeEvent.getNewValue();
   java.math.BigDecimal costOfBuildingValue = value.bigDecimalValue();
  </code></pre>
  
  <p>Number two?</p>