title: Convert an array of chars to an array of integers
body: <p>I have these arrays</p>
  
  <pre><code>char[] array = {'1', '2', '3', '4'};
  int[] sequence = new int[array.Length];  
  </code></pre>
  
  <p>Is there an easy way to assign the numbers in <code>array</code> to <code>sequence</code>?</p>
  
  <p>I tried this</p>
  
  <pre><code>for (int i = 0; i &lt; array.Length; i++)
  {
      seqence[i] = Convert.ToInt32(array[i]);
  }
  </code></pre>
  
  <p>But I get the ASCII coding of 1, 2, 3, 4 not the numbers by itself.</p>