Swift3 - '[String : AnyObject]' is not convertible to '[HTTPCookiePropertyKey : Any]'
<p>I'm just new to Swift and have taken over a project written in swift 2.2 with xCode 7.4. I am converting it to xCode 8 and swift3 and have only a single compiler error left. Please help to fix this.</p>

<pre><code>'[String : AnyObject]' is not convertible to '[HTTPCookiePropertyKey : Any]'
</code></pre>

<p>Here is the offending line of code.</p>

<pre><code>let cookie = HTTPCookie(properties: dict as! [String : AnyObject] as! [HTTPCookiePropertyKey : Any])
</code></pre>

<p>Would this fix it?</p>

<pre><code>let cookie = HTTPCookie(properties: dict as! [HTTPCookiePropertyKey : Any])
</code></pre>