title: Swift convert object that is NSNumber to Double
body: <p>I have this code in Swift and it works, but I would think there is a better way to get my object from NSNumber and convert it to  a Double:</p>
  
  <pre><code>var rating: NSNumber
  var ratingDouble: Double
  
  rating = self.prodResult?.prodsInfo.prodList[indexPath.row].avgRating as NSNumber!!
  
  ratingDouble = Double(rating.doubleValue)
  </code></pre>