title: Taking in a TypeDef as a parameter in Objective-C
body: <p>I have a situation where I'm declaring multiple related <code>typedef enums</code> in my constants file:</p>
  
  <pre><code>typedef enum 
  {
      AnimalTypeBear,
      AnimalTypeBunny,
      MemeTypeCount
  } 
  AnimalType;
  
  typedef enum 
  {
      FishTypeSalmon,
      FishTypeTrout,
      FishTypeCount
  } 
  FishType;
  </code></pre>
  
  <p>Now I'd like to define a parameter for an initializer called <code>type</code> that can take in both of these <code>typedef enums</code> as a parameter. I'm currently defining type as an <code>NSUInteger</code> and I keep getting 0 no matter which type I send into the initializer (ie FishTypeTrout should be 1 but it is 0). What type of object should <code>type</code> be to work for both <code>enter code here</code>typeDef enums?</p>