title: Numpy floor float values to int
body: <p>I have array of floats, and I want to floor them to nearest integer, so I can use them as indices.</p>
  <p>For example:</p>
  <pre><code>In [2]: import numpy as np
  
  In [3]: arr = np.random.rand(1, 10) * 10
  
  In [4]: arr
  Out[4]:
  array([[4.97896461, 0.21473121, 0.13323678, 3.40534157, 5.08995577,
          6.7924586 , 1.82584208, 6.73890807, 2.45590354, 9.85600841]])
  
  In [5]: arr = np.floor(arr)
  
  In [6]: arr
  Out[6]: array([[4., 0., 0., 3., 5., 6., 1., 6., 2., 9.]])
  
  In [7]: arr.dtype
  Out[7]: dtype('float64')
  </code></pre>
  <p>They are still floats after flooring, is there a way to automatically cast them to integers?</p>