title: Convert a list of strings to either int or float
body: <p>I have a list which looks something like this:</p>
  
  <pre><code>['1', '2', '3.4', '5.6', '7.8']
  </code></pre>
  
  <p>How do I change the first two to <code>int</code> and the three last to <code>float</code>?</p>
  
  <p>I want my list to look like this:</p>
  
  <pre><code>[1, 2, 3.4, 5.6, 7.8]
  </code></pre>