     // 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

        // 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 as Any) {
          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 {
