Change type to integer in Drawing