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