title: How do you get a float[] out of an ArrayList in Java
body: <p>I have gotten a float array stuck inside of a ArrayList. the arraylist contains a Boolean and the afore mentioned float array. my courrent code to get it out (which doesn't work) is
  <br/></p>
  
  <pre><code>(float)((Float)((Number)(DXY.get(0));
  </code></pre>
  
  <p>I would prefer to not have to change the things inside, but if absolutely necessary I could pass the Boolean as a 1 in a simple float array.</p>
  
  <p>The ArrayList is being passed from a method in another class which has it's return type declared as ArrayList.</p>
  
  <p>Thanks in advance.</p>
  
  <p>This was posted from a temporary account.</p>