title: Swift: Cannot convert value of type 'String' to expected argument type '@noescape (AnyObject) throws -> Bool'
body: <p>I know this is a simple question, yet i am having problem finding the solutions.</p>
  
  <p>In Swift 2.2, I am getting this error.</p>
  
  <blockquote>
    <p>Cannot convert value of type 'String' to expected argument type
    '@noescape (AnyObject) throws -> Bool'</p>
  </blockquote>
  
  <p>Here is the code.</p>
  
  <pre><code>var tableDataSectionsDict: CHOrderedDictionary?
  if !tableDataSectionsDict!.allKeys.contains("Yesterday") {
     tableDataSectionsDict!.insertObject(YesterdayArray, forKey: "Yesterday", atIndex: count)
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/t7LSZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t7LSZ.png" alt="enter image description here"></a></p>
  
  <p>What i am missing here ? Can anybody shade some light on it ?</p>