title: Ruby: string to array of integers
body: <p>I want to convert a string into an array of integers. Why do I get an array of strings? What's the right way to achieve the result I'm looking for?</p>
  
  <pre><code>"1234".chars.each { |n| n.to_i }
  
  =&gt; ["1", "2", "3", "4"]
  </code></pre>