void (Byte operand) { foo((<warning descr="Casting 'operand' to 'byte' is redundant">byte</warning>)operand); foo((short)operand); foo(<error descr="Inconvertible types; cannot cast 'java.lang.Byte' to 'char'">(char)operand</error>); foo((int)operand); foo((long)operand); foo((float)operand); foo((double)operand); foo(<error descr="Inconvertible types; cannot cast 'java.lang.Byte' to 'boolean'">(boolean)operand</error>); }