Type Casting Double To Int In Java