title: How can I resolve - TypeError: cannot safely cast non-equivalent float64 to int64?
body: <p>I'm trying to convert a few float columns to int in a DF but I'm getting above error.  I've tried both to convert it as well as to fillna to 0(which I prefer not to do, as in my dataset the NA is required).</p>
  <p>What am I doing wrong?
  I've tried both:</p>
  <pre><code>orginalData[NumericColumns] = orginalData[NumericColumns].astype('Int64')
  #orginalData[NumericColumns] = orginalData[NumericColumns].fillna(0).astype('Int64')
  </code></pre>
  <p>but it keeps resulting in the same error</p>
  <pre><code>TypeError: cannot safely cast non-equivalent float64 to int64
  </code></pre>
  <p>What can I do to convert the columns?</p>