Fixed casting (Rectangle)

My version of eclipse fails to recognise the Math module and thus
doesnt remind me to cast things!!