title: Converting an int to bit array in OCaml
body: <p>I got an int, lets say 6 and I want to convert it to a bit array.</p>
  
  <pre><code>bArr.(0) = 1
  bArr.(1) = 1
  bArr.(2) = 0
  </code></pre>
  
  <p>Is there any function that does this for me ? </p>
  
  <p>I needed it to be an array so that I can then pass it to other function that receives a boolean array.</p>