How can I access the underlying methods of JSession class via getMetaData(session)?

I would like to access getLastAccess() from the lucee.runtime.type.scope.JSession class returned from this code:

thisSession = getMetadata(session);

Doing thisSession.getLastAccess() (or any other method) results in No matching Method/Function for Class.getLastAccess() found error. Is this even possible to do?

Thanks!

getPageContext().sessionScope().lastVisit

HTH

– Denny