What is the best way to convert a Rect variable to RectF? I can’t leave him.
RectF rect = (RectF) currentRect; //produces an error
RectF rect = new RectF(currentRect);