static byte toByte(O o) { if (o == null) ret (byte) 0; if (o cast Number) ret o.byteValue(); if (o cast S) ret toByte(parseInt(o)); throw fail("not convertible to byte: " + getClassName(o)); } static byte toByte(int i) { ret (byte) i; }