title: Swift - using enum in switch statement
body: <p>I get this error:</p>
  
  <pre><code>'NSNumber' is not a subtype of Cat
  </code></pre>
  
  <p>Here is the code:</p>
  
  <pre><code>enum Cat:Int {
      case Siamese = 0
      case Tabby
      case Fluffy
  }
  
  let cat = indexPath.row as Cat
      switch cat {
      case .Siamese:
          //do something
          break;
      case .Tabby:
          //do something else
          break;
      case .Fluffy:
  
          break;
      }
  </code></pre>
  
  <p>How can I resolve this error?</p>