title: Swift: Contextual type 'AnyObject' cannot be used with dictionary literal
body: <p>I am having difficulty constructing this dictionary. My code looks like this:</p>
  
  <pre><code>var array: [String] = []
  let params: [String: AnyObject] = [
      "presentation": [
              "array": array,
              "current_index": 0
      ]
  ]
  </code></pre>
  
  <p>The error shows up on the first line <code>"presentation": [</code> with <strong>Contextual type 'AnyObject' cannot be used with dictionary literal</strong>. I have tried rewriting the array, initializing the params then setting the values, etc. etc. and I cannot figure out this problem. Any help would be awesome!</p>
  
  <p>Thank you in advance!</p>