// unbox
Class<?> targetType = getType().getPrimitiveType();
return block.invokeVirtual(wrap(targetType), targetType.getSimpleName() + "Value", targetType);
}
else {
block.checkCast(getType());
}
return block;
}
private static Block castPrimitiveToPrimitive(Block block, Class<?> sourceType, Class<?> targetType)