src/main/java/ognl/OgnlContext.java
public Class getPreviousType()
    {
        if (_typeStack.isEmpty())
            return null;

        if (_typeStack.size() > 1)
            return _typeStack.get(_typeStack.size() - 2);
        else
            return null;
    }
public Class getPreviousType()
    {
        if (_typeStack.isEmpty())
            return null;

        if (_typeStack.size() > 1)
            return _typeStack.get(_typeStack.size() - 2);
        else
            return null;
    }
Represents the last known object type on the evaluation stack, will be the value of
the last known {@link #getCurrentType()}.

@return The previous type of object on the stack, may be null.