title: Passing swift dictionaries with different value types to same function
body: <p>I have two dictionaries:</p>
  
  <pre><code>let dict1 = [String : MyType1]
  let dict2 = [String : MyType2]
  </code></pre>
  
  <p>To clarify: <code>MyType1</code> and <code>MyType2</code> are structs and each dict can only have one valueType.</p>
  
  <p>And I'd like to be able to pass them to the same function:</p>
  
  <pre><code>func doSomethingWithDict(dict : [String : AnyObject]) {
     // do something with dict
  }
  </code></pre>
  
  <p>But that obviously gives me an error:</p>
  
  <pre><code>Cannot convert value of type '[String : MyType1]' to expected argument type '[String : AnyObject]'
  </code></pre>
  
  <p>Is there a way to fix this, is this even possible?</p>