Look for qualified this usages in the same class.
Examples:
Negative example: Integer[] a = (Integer [])c.toArray(); Positive example: Integer[] b = (Integer [])c.toArray(new Integer[c.size()]);