title: Swift: cannot convert value of type to @noescape while call indexOf, after filter using filter function
body: <p>In Swift 2, I'm receiving an error: </p>
  
  <blockquote>
    <p>Cannot convert value of type <code>'[String:AnyObject]'</code> to expected argument type <code>'@noescape ([String:AnyObject])'</code> throws -> Bool"</p>
  </blockquote>
  
  <pre><code>//today = NSDate()
  //array : [[String:AnyObject]]
  // I use if let because of we might now get element in the array matching our condition
  
  if let elementOfArray = array.filter({$0["id"] as? Int == anotherDictionary["matchID"] as? Int &amp;&amp; ($0["nextFireDate"] as? NSDate)?.compare(today) == NSComparisonResult.OrderedAscending}).first {
  
     let index = array.indexOf(elementOfArray) // error here
  }
  </code></pre>
  
  <p>What I'm doing wrong? I can't understand. :/</p>
  
  <p>My aim, is to find index of that item, I think that I open for alternative solutions, but of course this one is preferred, because I think this is the "right way". </p>