Just see if class Stack implements the interface IAbstractQueryR esult. If yes, just cast it.
If no, then make your own new class (let's say AbstractQuerySt ack) that extends Stack and implements IAbstractQueryR esult. When you assing lifo= new AbstractQuerySt ack() then you can cast lifo to IAbstractQueryR esult.
Comment