// converting an ArrayList to an array with generics, trimming in the process.
String[] predators = al.toArray( new String[ al.size() ] );

// converting an ArrayList to an array without generics, trimming in the process.
String[] predators = (String[])al.toArray( new String[ al.size() ] );