title: convert character to int - swift 3
body: <p>I need to do some calculation from the character in an array. </p>
  
  <pre><code>let characters = Array(number.characters)
  total += Int(characters[i]) * multipliers[i]
  </code></pre>
  
  <p>This array is something like ["8", "7", "6", "5", "4", "3", "2", "1", "2", "3"].  </p>
  
  <blockquote>
    <p>I'm getting an error as "Cannot invoke initializer for type 'Int' with
    an argument list of type '(String.CharacterView._Element)"</p>
  </blockquote>
  
  <p>I tried this with no luck</p>
  
  <pre><code>total += String(characters[i]).toInt() * multipliers[i]
  </code></pre>
  
  <p>Can someone help me to solve this? How to convert characters into int in swift3?</p>