getCachedUser now uses the configured user class rather than just User