title: Swift 3 Contextual type 'AnyObject' Cannot be used with dictionary literal
body: <p>I was porting from swift2.3 to swift3 and ran into the following problem.</p>
  
  <p>I am trying to return a dictionary of value dictionary in the function below. But is getting the error <code>Contextual type 'AnyObject' Cannot be used with dictionary literal</code></p>
  
  <p>I have tried manually bridging the value as <code>AnyObject</code> after looking for some answers but to no avail.</p>
  
  <p><code>typealias Payload = [String: AnyObject]</code>    </p>
  
  <pre><code>func toCreatePayload() -&gt; Payload {
      let payload: [String: [String:AnyObject]] =
          ["saving_rule": ["description": title as AnyObject,
                           "amount": amount! as AnyObject,
                           "background_color": (backgroundColor?.toHexString())! as AnyObject,
                           "saving_rule_category_id": category!.remoteId as AnyObject,
                           "saving_rule_sub_category_id": subCategory != nil ? subCategory!.remoteId : ("" as AnyObject),
                           "saving_rule_condition_id": condition != nil ? condition!.remoteId : ("" as AnyObject),
                           "saving_rule_condition_customizations_attributes": customizations.map({$0.toCreatePayload()}) as AnyObject,
                           "suspended": "false"] as AnyObject
          ]
      return payload as [String:AnyObject]
  }
  </code></pre>