         // The relation key must be a string. Turn the value into an array of
         // dictionaries, parsing an embedded representation from each
         // dictionary.
-        for object in NSDictionaryRepresentationParser.objects(from: value) {
+        for object in NSDictionaryRepresentationParser.objects(from: value as AnyObject) {
           let embeddedRepresentation = Representation()
           parse(representation: embeddedRepresentation, object: object)
           _ = representation.with(rel: rel, representation: embeddedRepresentation)

    for (key, value) in object {
      guard let name = key as? String else { continue }
      if [Representation.Links, Representation.Embedded].contains(name) { continue }
      _ = representation.with(name: name, value: value)
    }

    if let embedded = object[Representation.Embedded] as? NSDictionary {

      for (key, value) in linksObject {
        guard let rel = key as? String else { continue }
        if rel == Link.CuriesRel { continue }
        for object in NSDictionaryRepresentationParser.objects(from: value as AnyObject) {
          // The link object requires at least a hypertext reference. All links
          // require a relation and a reference. Other attributes remain
          // optional.
