title: How to convert NSObject to NSDictionary or how to access NSObject key Swift3
body: <p>I`m new on this I hope you can help me.</p>
  
  <p>I recibe a variable in a function, this variable is a key value object and I have the next code to set this var.</p>
  
  <pre><code>let params = command.arguments[0] as? NSObject
  </code></pre>
  
  <p>If I print this variable the result is:</p>
  
  <pre><code>Optional(&lt;__NSArrayM 0x17024fea0&gt;(
  {
      coordinate = "xxxxxxx,xxxxx";
      identifier = cordstrab;
      latitude = "xxxxxxxx";
      longitude = "xxxxxxx";
      note = Trabajo;
      radius = 5;
      type = onEntry;
  }
  )
  )
  </code></pre>
  
  <p>I want to be able to acces to the data, I'm trying with</p>
  
  <pre><code>let lat = (params?.value(forKey: "latitude") as! String)
  </code></pre>
  
  <p>I don´t know what is wrong or how can I get the the values of this object.</p>