     // dictionary with a name and a hypertext reference.
     if let linksObject = object[Representation.Links] as? NSDictionary {
       if let curieObjects = linksObject[Link.CuriesRel] {
-        for object in NSDictionaryRepresentationParser.objects(from: curieObjects as Any) {
+        for object in NSDictionaryRepresentationParser.objects(from: curieObjects) {
           // Both the name and the hypertext reference must have string type;
           // there is no scope for representing references except using their
           // string form. Represent with strings, otherwise the parser ignores

      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 Any) {
          // The link object requires at least a hypertext reference. All links
          // require a relation and a reference. Other attributes remain
          // optional.

    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 {
