title: Creating dictionaries 'on-the-fly' in Swift with custom enums as the values
body: <p>I'm using the <code>performSegueWithIdentifier:sender:</code> method and I'd like to pass several arguments through the <code>sender</code> parameter. In Objective-C, I was creating a NSDictionary <em>on-the-fly</em> using <code>@{"myKey": myValue}</code> syntax.</p>
  
  <p>I tried several ways in Swift but the compiler always gives me an error of that kind: <em>'AnyObject?' does not have a member named {'Element' or 'Key'}</em></p>
  
  <p>How to reproduce the expected behaviour in Swift? Thanks!</p>
  
  <p>EDIT: Here's my code:</p>
  
  <pre><code>self.stopCamera()
  dispatch_async(dispatch_get_main_queue(), { () -&gt; Void in
      self.performSegueWithIdentifier("backCameraVCtoFrontCameraVC", sender: [("image", image),  ("fitler", filter)])
  })
  </code></pre>