title: iPhone how to check the type of an Object?
body: <p>I want to check the type of an Object. How can I do that?</p>
  
  <p>The scenario is I'm getting an object. If that object is of type A then do some operations. If it is of type B then do some operations. Currently the type of the object is C that is parent of A and B.</p>
  
  <p>I have two classes <code>AViewController</code> and<code>BViewController</code>. The object I'm getting in <code>UIViewController</code>. Now how to check whether the object is <code>AViewController</code> or <code>BViewController</code>?</p>