title: cannot convert value of type 'Data' to expected argument type 'Data'
body: <p>It was working fine before but somehow i am getting above error now while converting <code>NSData to String</code>. <strong>It showing me error on line number 2</strong> i.e  </p>
  
  <pre><code>let jsonString = NSString(data: jsonData as Data, encoding: String.Encoding.utf8.rawValue) as! String 
  </code></pre>
  
  <p>It shows me error.</p>
  
  <blockquote>
    <p>cannot convert value of type 'Data' to expected argument type 'Data'</p>
  </blockquote>
  
  <p>OR</p>
  
  <blockquote>
    <p>cannot convert value of type 'NSData' to type 'Data' in coercion</p>
  </blockquote>
  
  <pre><code>do{
          jsonData = try JSONSerialization.data(withJSONObject: para, options: JSONSerialization.WritingOptions()) as NSData
          let jsonString = NSString(data: jsonData as Data, encoding: String.Encoding.utf8.rawValue) as! String
          print("json array string best json request body = \(jsonString)")
          return jsonString
  
      } catch _ {
          print ("UH OOO")
          return nil
      }
  </code></pre>