title: Convert integer to array
body: <p>I would like to convert an integer into an array, so that it looks like the following:</p>
  
  <pre><code>int number = 123456 ;
  int array[7] ;
  </code></pre>
  
  <p>with the result:</p>
  
  <pre><code>array[0] = 1 
  array[1] = 2
  ...
  array[6] = 6
  </code></pre>