title: 'id' that points to some class or any subclass
body: <p>so in Objective-C I can have a reference to object that implements certain protocol like this:</p>
  
  <pre><code>id&lt;MyAwesomeProtocol&gt; object;
  </code></pre>
  
  <p>I could have a reference to some class, like this:</p>
  
  <pre><code>MyAwesomeClass *object;
  </code></pre>
  
  <p>I was wondering, what should I do to have reference to MyAwesomeClass, or any sub-class.</p>
  
  <p>I could of course just use <code>id</code> but I'd like to know if there is any better way.</p>
  
  <p>Thanks!</p>