title: Convert list values to boolean
body: <p>What I want to convert is something like this</p>
  
  <pre><code>a = [ 0, 10, 3, 2, 0, 2 ]
  
  def covert_to_boolean(a)
       ...
      return a_converted
  
  a_coverted = [ 0, 1, 1, 1, 0, 1]
  </code></pre>
  
  <p>what would be the easiest way to convert like this?</p>