case 'B': // byte
return Byte.toString(theByte);
case 'C': // char
- return Character.toString(theChar);
+ return Character.valueOf(theChar).toString();
case 'D': // double
return Double.toString(theDouble);
case 'F': // float
case 'S': // short
return Short.toString(theShort);
case 'Z': // boolean
- return Boolean.toString(theBoolean);
+ return Boolean.valueOf(theBoolean).toString();
case 's': // String
return theString;
default: throw new BCException("Do not understand this kind: "+valueKind);