title: Read data from CSV file and transform from string to correct data-type, including a list-of-integer column
body: <p>When I read data back in from a CSV file, every cell is interpreted as a string.</p>
  
  <ul>
  <li>How can I automatically convert the data I read in into the correct type?</li>
  <li>Or better: How can I tell the csv reader the correct data-type of each column?</li>
  </ul>
  
  <p>(I wrote a 2-dimensional list, where each column is of a different type (bool, str, int, list of integer), out to a CSV file.)</p>
  
  <p>Sample data (in CSV file):</p>
  
  <pre class="lang-none prettyprint-override"><code>IsActive,Type,Price,States
  True,Cellphone,34,"[1, 2]"
  ,FlatTv,3.5,[2]
  False,Screen,100.23,"[5, 1]"
  True,Notebook, 50,[1]
  </code></pre>