title: Convert BigDecimal Object to double value
body: <p>I am querying a database with a jdbc connection:</p>
  
  <pre><code>    List&lt;Map&lt;String, Object&gt;&gt; rows = jdbcTemplate.queryForList(SELECT_QUERY);   
      for(Map row : rows) {
          Results result = new Results();
          result.setResultValueDouble((Double)row.get("AMOUNT"));
  
          //add the data object to the list
          resultList.add(result);
      }
  </code></pre>
  
  <p>However, the object I query is in BigDecimal and I would like to convert it to plain double. Using a cast does not work and gives me a <code>ClassCastException</code>.</p>
  
  <p>Any recommendations how to cast this Object properly?</p>
  
  <p>I appreciate your reply!</p>