title: New modern Objective-C enum type check
body: <p>If I declare enum type with new NS_ENUM macro which was introduced because of stronger type check, am I able to check for this type also in runtime?</p>
  
  <p>I mean, I have</p>
  
  <pre><code>typedef NS_ENUM(NSUInteger, MyNewType) {
  
      MyNewTypeInstance1,
      MyNewTypeInstance2,
      MyNewTypeInstance3
  
  };
  </code></pre>
  
  <p>. And I want to know that for example <code>(NSUInteger)i = 2</code> is kind of <code>MyNewType</code>.</p>