How to Assign ArrayList hashmap<String,Double[]> to List
<p>I'm trying to assign Hashmap values of Double[] to List, but it is throwing an error:</p>

<blockquote>
  <p>"The method add(Double) in the type List is not applicable for the arguments 
       (Double[])"</p>
</blockquote>

<pre><code>ArrayList&lt;HashMap&lt;String, Double[]&gt;&gt; arl = (ArrayList&lt;HashMap&lt;String, Double[]&gt;&gt;) pd.getArrayList();

List&lt;Double&gt; empid = new ArrayList&lt;Double&gt;();
Iterator itr = arl.iterator();

while (itr.hasNext()) {
    HashMap&lt;String, Double[]&gt; map = (HashMap&lt;String, Double[]&gt;) itr.next();
    empid.add(map.get("id")));
}
</code></pre>

<p>How can I cast <code>Double[]</code> to <code>Double.Request</code>?</p>
