Convert size, width and height to int, as before r29981