title: Convert numpy int array to boolean array
body: <p>I have an array that maps the cells in a game of life. So far I have an int for every single cell. To minimize the amount of reads I want to compress the array to whole 8 cells per 1 integer.</p>
  
  <p>The problem arises when I want to create a bitmap, which expects an array of 0 and 1 like in the previous case.</p>
  
  <p>Is there any quick way in numpy to convert this? I could you a loop for this but there might be a better way.</p>
  
  <p>Example:</p>
  
  <pre><code>[01011100b, 0x0] -&gt; [0, 1, 0, 1, 1, 1, 0 ,0, 0,0,0,0,0,0,0,0]
  </code></pre>