Automatic Type Casting In Java