title: Swift 2 Array Contains object?
body: <p>Why isn't this working? I can use array.contains() on a String but it doesn't work for an Object. </p>
  
  <pre><code>var array = ["A", "B", "C"]
  
  array.contains("A") // True
  
  class Dog {
      var age = 1
  }
  
  var dogs = [Dog(), Dog(), Dog()]
  var sparky = Dog()
  dogs.contains(sparky) // Error Cannot convert value of type 'Dog' to expected argument type '@noescape (Dog) throws -&gt; Bool
  </code></pre>