title: isKindOfClass doesn't work as expected
body: <p>i'm working on a iOS5+ project (xcode 4.4.1 SDK 5.1)</p>
  
  <p>i have this code inside a unit test:</p>
  
  <pre><code>[_appDelegate application:nil didFinishLaunchingWithOptions:nil];
  
  UITabBarController *tabBarController = (UITabBarController*)_appDelegate.window.rootViewController;
  
  NSArray *viewControllers = [tabBarController viewControllers];
  
  UINavigationController *nc_1 = [viewControllers objectAtIndex:0];
  UIViewController *vc_1 = nc_1.topViewController;
  
  STAssertTrue([vc_1 isKindOfClass:[ScheduleViewController class]]==YES, @"UITabBarController first tab should be a ScheduleViewController class");
  </code></pre>
  
  <p>If i run the test, the test fail.</p>
  
  <p>So i check with the debugger:</p>
  
  <pre><code>(lldb) po [ScheduleViewController class]
  (id) $1 = 0x00142b04 ScheduleViewController
  (lldb) po vc_1
  (UIViewController *) $2 = 0x11a32dc0 &lt;ScheduleViewController: 0x11a32dc0&gt;
  (lldb) print (BOOL) [vc_1 isKindOfClass:(Class)[ScheduleViewController class]]
  (BOOL) $4 = YES
  (lldb) po [vc_1 class]
  (id) $5 = 0x00142b04 ScheduleViewController
  (lldb) 
  </code></pre>
  
  <p>In application:didFinishLaunchingWithOptions: i create a ScheduleViewController and i use it as rootController of the navigation controller. The debugger say it's correct.
  I don't understand what is wrong with the assert above.</p>
  
  <p>Someone have idea about this?</p>
  
  <p><strong>Update</strong></p>
  
  <p>The first implementation of thE assert was:</p>
  
  <pre><code>STAssertTrue([vc_1 isKindOfClass:[ScheduleViewController class]], @"UITabBarController first tab should be a ScheduleViewController class");
  </code></pre>
  
  <p>The assert failed at the same way.</p>
  
  <p><strong>Update 2</strong></p>
  
  <p>As suggested in the comment i try to add this piece of code before the assert:</p>
  
  <pre><code>BOOL vcBool = [vc_1 isKindOfClass:[ScheduleViewController class]];
  </code></pre>
  
  <p>With the debugger i see:</p>
  
  <pre><code>(lldb) print (BOOL) [vc_1 isKindOfClass:(Class)[ScheduleViewController class]]
  (BOOL) $1 = YES
  (lldb) print (BOOL) vcBool
  (BOOL) $2 = NO
  (lldb) 
  </code></pre>
  
  <p><strong>Update 3</strong></p>
  
  <p>I added this line, as suggested in the comments, before the assert:</p>
  
  <pre><code>NSLog(@"vc_1=%@ class=%@", vc_1, NSStringFromClass([vc_1 class]));
  </code></pre>
  
  <p>From the debug console:</p>
  
  <pre><code>vc_1=&lt;ScheduleViewController: 0x993bdb0&gt; class=ScheduleViewController
  </code></pre>