title: List string int converting in scala
body: <p>I am confused about list of chars and int with scala. Here is my example :</p>
  
  <pre><code>scala&gt; var s = "123456"
  s: String = 123456
  
  scala&gt; s.map(_.toInt)
  res0: scala.collection.immutable.IndexedSeq[Int] = Vector(49, 50, 51, 52, 53, 54)
  
  scala&gt; s.map(_.toInt).sum
  res1: Int = 309
  </code></pre>
  
  <p>The chars are converted in ASCII code I assume, how to just transform a char in its value ?</p>
  
  <p>Thank you</p>