title: Type casting for BigDecimal
body: <p>I have a method return type as <code>ArrayList&lt;String&gt;</code> which is also reading an argument of the same type. Now how do I <code>type cast</code> or modify my BigDecimal to read that value?</p>
  
  <pre><code>public static ArrayList&lt;String&gt; currencyUtilArray(ArrayList&lt;String&gt; amountStr ) {
  BigDecimal amount = new BigDecimal(ArrayList&lt;String&gt; amountStr);
  //How do I define that the amountStr is ArrayList&lt;String&gt; and need to place in BigDecimal amount one after another till the end of the List 
      return amountStr;
  }
  </code></pre>
  
  <p>Or do I need to do</p>