title: make arrayList.toArray() return more specific types
body: <p>So, normally <code>ArrayList.toArray()</code> would return a type of <code>Object[]</code>....but supposed it's an 
  <code>Arraylist</code> of object <code>Custom</code>, how do I make <code>toArray()</code> to return a type of <code>Custom[]</code> rather than <code>Object[]</code>?</p>