title: Force casting to int in python
body: <p>I have a list of values that I have to use as<code>int</code>: </p>
  
  <pre><code>ValueError                                Traceback (most recent call last)
  &lt;ipython-input-4-9b4decbf862c&gt; in &lt;module&gt;()
        1 for i in range(len(Training_Raw)-1):
  ----&gt; 2     print(int(Training_Raw[row_indeces[i]][-1]))
  
  ValueError: invalid literal for int() with base 10: '5.0'
  </code></pre>
  
  <p>As you can see trying to convert them to <code>int</code> through the error message, despite a "valid" values. </p>
  
  <p>Does anybody here has a hint how to solve this ?  </p>