How to remove square brackets [ ] from stored Int/String retrieved using JSON (Swift)?
<p>In the following snippet of code I am retrieving some Int values from an API call.</p>

<p>I want to use these values to update a couple of UILables on my app.</p>

<pre><code>if let dict = json?["Stats"] as? [String:AnyObject] {
    self.tempTotalWins = [dict["totalWins"]! as! Int]
    self.tempTotalDraws = [dict["totalDraws"]! as! Int]
    self.totalWins = String(describing: self.tempTotalWins)
    self.totalDraws = String(describing: self.tempTotalDraws)
    print (self.tempTotalWins)
    self.wonLabel.text = self.totalWins!
    self.drawnLabel.text = self.totalDraws!
}
</code></pre>

<p>This is currently outputting and updating the labels as <code>[1]</code> and <code>[3]</code>.</p>

<p>How do I remove the <code>[ ]</code> so it just prints the number <code>1</code> and <code>3</code>?</p>