There is a flush Queue function that will return all of the elements as an array. Then you can index this array. You can also take this array and put it back into the queue if you need to keep them. Queues aren't really made to pull items out of the middle.