Use this function to peek at next item from the ObjectStack without causing iteration.
ObjectStack Class