Handle the interface class when the object is an instance of either Proxy or ORMProxy.