}
protected static void checkPreconditions(List<DataType> dataTypes) throws IllegalArgumentException {
Preconditions.checkArgument(dataTypes.size() == 1, "Invalid number of arguments");
Preconditions.checkArgument(dataTypes.get(0) instanceof ArrayType, "Argument must be an array type");
ArrayType arrayType = (ArrayType) dataTypes.get(0);
Preconditions.checkArgument(DataTypes.PRIMITIVE_TYPES.contains(arrayType.innerType()),
String.format(Locale.ENGLISH, "Array inner type '%s' not supported for conversion",
arrayType.innerType().getName()));
}