title: What is the best way to convert from a RectF to a Rect in Android?
body: <p>I would like to convert from a RectF to a Rect in Android. Currently I have:</p>
  
  <pre><code>RectF rectF = new RectF();
  rectF.set( ... some values ... );
  
  ...
  
  Rect rect = new Rect((int)rectF.left,
                       (int)rectF.top,
                       (int)rectF.right,
                       (int)rectF.bottom));
  </code></pre>
  
  <p>Is there a better way?</p>