如下
type
  IMyIntf = interface
   ['{}']
   procedure DoSomething;
  end;
  TMyObj = class(TInterfacedObject, IMyIntf)
   procedure DoSomething;
  end;
  procedure TMyObj.DoSomething;
  begin
  end;  function CheckType(intf : IMyIntf):boolean;
  begin
    //这里如何检测intf是否是TMyObject或其子类的对象?
  end;