title: Merging Dictionaries with multiple Types, or Any / AnyObject Type
body: <p>I have this Swift code for merging two Dictionaries together:</p>
  
  <pre><code>extension Dictionary {
      mutating func extend(newVals: Dictionary &lt;String, Any&gt;) {
          for (key,value) in newVals {
              self.updateValue(value, forKey:key)
          }
      }
  }
  </code></pre>
  
  <p>The line that contains <code>.updateValue( , forKey:)</code> generates the following error:</p>
  
  <pre><code>'protocol&lt;&gt;' is not convertible to 'Value'
  </code></pre>
  
  <p>Previously I had <code>newVals</code> as a <code>Dictionary &lt;String, String&gt;</code> and it worked fine, so my guess is the problem is caused by the use of <code>Any</code>.</p>
  
  <p>My problem here is that I am using Dictionaries with a mixture of <code>String</code>s and <code>Int</code>s (and possibly other types of value later on).</p>
  
  <p>Is there anyway to get this <code>extend</code> function to work with the type <code>Any</code>?</p>