title: Check if A is a subclass of B?
body: <p>I am currently using Unreal Engine 4 and it seems that I can't avoid some casts.</p>
  
  <pre><code>AController* c = this-&gt;GetController();
  APlayerController* p = (APlayerController*)c;
  </code></pre>
  
  <p>Is there a way that I can check if <code>c</code> is a <code>PlayerController</code> before I do the cast?</p>