This inspection reports suspicious calls to Collection.toArray(). Reported are calls where the type of the specified array argument is not of the same type as the array type to which the result is casted or the type of the specified array argument does not match the type parameter of the collection declaration.