I have the following method:
def _attempt(actor): if actor.__class__ != User: raise TypeError
Which is called from a view:
user= request.user._wrapped if hasattr(request.user,'_wrapped') else request.user
Then you use user instead of request.user.
user
request.user
This is similar to UsAaR33's answer, but a one-liner is nicer for converting the object.