How to cast uiviewcontroller to custom class
<p>I have a list custom <code>viewController</code></p>

<pre><code>NSMutableArray *arrOfCtrls = [[NSMutableArray alloc] init];
AViewController *aCtrl = [[AViewController alloc] init];
BViewController *bCtrl = [[BViewController alloc] init];
CViewController *cCtrl = [[CViewController alloc] init];
DViewController *dCtrl = [[DViewController alloc] init];
[arrOfCtrls addObject: aCtrl];
[arrOfCtrls addObject: bCtrl];
[arrOfCtrls addObject: cCtrl];
[arrOfCtrls addObject: dCtrl];
</code></pre>

<p>And then, i want to get <code>UIViewController</code> in list <strong>arrOfCtrls</strong></p>

<pre><code>UIViewController *vCtrl = arrOfCtrls[0];
</code></pre>

<p>How to cast vCtrl is <code>AViewController</code> ?
I want to get properties in vCtrl, Example i want to get aProperties in AViewController</p>

<pre><code>vCtrl.aProperties
</code></pre>

<p>Thanks!</p>