Reports any cast operations between primitive numeric types which may result in loss of precision. Such casts are not necessarily a problem, but may result in difficult to trace bugs if the loss of precision is unexpected.

Use the first checkbox below to indicate that this inspection should ignore casts from int to char. This type of cast is often used when implementing I/O operations, because the read() method of the class java.io.Reader returns an int.

Use the second checkbox below to ignore casts of constant values 128-255 from int to byte. Such values will overflow to negative numbers that still fit inside a byte.