title: Update the values of particular key in json returned array of dictionary in SWIFT
body: <p>I am getting some response in JSON data array of dictionary format. I need to update the value for particular keys which are 'TotalValue' and 'IndexValue' (making their values rounded of to 2 decimal places).  </p>
  
  <pre><code>[
    {
      "Id" : 2010,
      "TotalValue" : 100.91478,
      "IndexValue" : 100.75859,
      "Date" : "7\/9\/2018 12:00:00 AM",
      "Compare" : "ABC"
    },
    {
      "Id" : 2010,
      "TotalValue" : 99.914788865745123,
      "IndexValue" : 100.86935289185379,
      "Date" : "7\/10\/2018 12:00:00 AM",
      "Compare" : "ABC"
    }
  ]
  </code></pre>
  
  <p>while I am trying to convert it into NSDictionary, taking each each dictionary out in loops it's giving me error related to typecasting. Please suggest some solution</p>