title: Dynamic type casting in python
body: <p>I have 2 dicts:</p>
  
  <pre><code>dicts1 = {'field1':'', 'field2':1, 'field3':1.2}
  dicts2 = {'field1':123, 'field2':123, 'field3':'123'}
  </code></pre>
  
  <p>I want to convert each value in <code>dict2</code> to be the same type as the corresponding value in <code>dict1</code>, what's the quickest pythonic way of doing it?</p>