public static Object[] asArgumentArray(Object args) {
    return InvokerHelper.asArray(args);
  }
Need to be careful because this converts null to an empty array.
For single arguments, new Object[] {arg} should therefore be used.
spock-core/src/main/java/org/spockframework/runtime/GroovyRuntimeUtil.java