The images are the two methods that are giving me troubles in my adaptablePQ class and NodePositionList class. The NPL class was made by my prof so it shouldn't have to be edited. The next() method I am invoking takes a Position<E> object and returns a Position<E>. I am not sure why its trying to cast to a nested posEntry and I am not sure how to fix this.
Full code if anyone was interested: https://gist.github.com/DaddyPMA/99be770e261695a1652de7a69aae8d70