title: Parse dictionary in swift 3.0
body: <p>I am using google places api to get latitude and longitude , but not able to parse dictionary. I am using following code</p>
  
  <pre><code> let lat = ((((dic["results"] as! AnyObject).value(forKey: "geometry") as AnyObject).value(forKey: "location") as AnyObject).value(forKey: "lat") as AnyObject).object(0) as! Double
  </code></pre>
  
  <p>Error: Cannot call value of non-functioning type 'Any?!'</p>
  
  <p>I have also checked with nsdictionary instead of Anyobject but didn't worked .
  Can any one know how to properly get lat from above code.</p>
  
  <p>Responce :</p>
  
  <pre><code>{
  results =     (
              {
          "address_components" =             (
                              {
                  "long_name" = Palermo;
                  "short_name" = Palermo;
                  types =                     (
                      locality,
                      political
                  );
              },
                              {
                  "long_name" = "Province of Palermo";
                  "short_name" = PA;
                  types =                     (
                      "administrative_area_level_2",
                      political
                  );
              },
                              {
                  "long_name" = Sicily;
                  "short_name" = Sicily;
                  types =                     (
                      "administrative_area_level_1",
                      political
                  );
              },
                              {
                  "long_name" = Italy;
                  "short_name" = IT;
                  types =                     (
                      country,
                      political
                  );
              }
          );
          "formatted_address" = "Palermo, Italy";
          geometry =             {
              bounds =                 {
                  northeast =                     {
                      lat = "38.219548";
                      lng = "13.4471566";
                  };
                  southwest =                     {
                      lat = "38.0615392";
                      lng = "13.2674205";
                  };
              };
              location =                 {
                  lat = "38.1156879";
                  lng = "13.3612671";
              };
              "location_type" = APPROXIMATE;
              viewport =                 {
                  northeast =                     {
                      lat = "38.2194316";
                      lng = "13.4471566";
                  };
                  southwest =                     {
                      lat = "38.0615392";
                      lng = "13.2674205";
                  };
              };
          };
          "place_id" = ChIJmdBOgcnoGRMRgNg7IywECwo;
          types =             (
              locality,
              political
          );
      }
  );
  status = OK;
  </code></pre>
  
  <p>}</p>