title: Cannot cast from BigDecimal to String in jasper (weird error //$JR_EXPR_ID=18$)
body: <p>I have a jrxml file which has a field of BigDecimal value and when I try to execute the report. I get an error called " Cannot cast from BigDecimal to String in jasper". Im doing the report using ireport 5.6.0, and I get a weird error like this,</p>
  
  <pre><code>1. Cannot cast from BigDecimal to String
              value = (java.lang.String)(((java.math.BigDecimal)variable_variable1.getValue())); //$JR_EXPR_ID=18$
                      &lt;-----------------------------------------------------------------------&gt;
  2. Cannot cast from BigDecimal to String
              value = (java.lang.String)(((java.math.BigDecimal)variable_variable1.getOldValue())); //$JR_EXPR_ID=18$
                      &lt;--------------------------------------------------------------------------&gt;
  3. Cannot cast from BigDecimal to String
              value = (java.lang.String)(((java.math.BigDecimal)variable_variable1.getEstimatedValue())); //$JR_EXPR_ID=18$
                      &lt;--------------------------------------------------------------------------------&gt;
  3 errors
  </code></pre>
  
  <p>I tried to change the expression class. but nothing seems to work. I need the value to get the sum and also as a field.</p>