title: Warning: Incompatible integer to pointer conversion when using NS_ENUM types
body: <p>I am using an enum, something like this:</p>
  
  <pre><code>typedef NS_ENUM(NSInteger, MyURLType) {
      MyURLType1,
      MyURLType2,
      MyURLType3
  };
  </code></pre>
  
  <p>The problem appears when I try to compare or identify the type:</p>
  
  <pre><code>if (type == MyURLType2)
  </code></pre>
  
  <p>I am getting a <code>"Incompatible integer to pointer conversion"</code> warning in the case of <code>MyUrlType2</code> and <code>MyUrlType3</code> (not in the case of <code>MyURLType1</code>). Am I doing anything wrong in the declaration? Any ideas?</p>
  
  <p>Thanks!</p>