for (int i = 0; i < array.length(); i++) {
Array.set(value, i, (byte) array.getInt(i));
}
} else {
for (int i = 0; i < array.length(); i++) {
Object element = decodeObjectInternal(type, array.opt(i), array.getLineNumber(i), warnings);
try {
Array.set(value, i, element);
} catch (IllegalArgumentException ex) {
throw new CodecExceptionLineNumber("Element " + i + " with value " +
array.opt(i).toString() + " cannot be converted to " + type.toString(),