After I use the method .toArray() in a Priority Queue of Integers I get an array of Objects like this:
.toArray()
Object[] objects = pq.toArray(); <
Object[] objects = pq.toArray();