title: Split string to various data types
body: <p>I would like to convert the following string:</p>
  
  <pre><code>s = '1|2|a|b'
  </code></pre>
  
  <p>to</p>
  
  <pre><code>[1, 2, 'a', 'b']
  </code></pre>
  
  <p>Is it possible to do the conversion in one line?    </p>