title: java.lang.ClassCastException: java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList
body: <p>Can you explain me why does this happen and how can I fix it please?</p>
  <p>So I'm using Oracle-ADF and I'm using shuttle components. I get the selected values using the <code>sos1.getValue();</code></p>
  <p>The getValue() method returns an object and I'm trying to convert it to an ArrayList so I can work with it later. Therefore I've created the <code>ArrayList sos1Value</code></p>
  <p>However, this line of code is going bananas:</p>
  <pre><code>sos1Value = (ArrayList) Arrays.asList(sos1.getValue());
  </code></pre>
  <p>And I keep getting <code>java.lang.ClassCastException: java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList</code></p>
  <p>I've tried other ways like: <code>sos1Value = (ArrayList) sos1.getValue();</code></p>
  <p>But I keep having the same problem, what can I do?</p>