Got this 2.4.5 Groovy error trying to perform a covariance calc:

groovy.lang.MissingMethodException: No signature of method: org.apache.commons.math3.stat.correlation.Covariance.covariance() is applicable for argument types: ([Ljava.lang.Double;, [Ljava.lang.Double;)

covariance() requires two double arrays, and that's what I provided, so what gives?

Do I need to cast the Groovy/Java array into another type?

Any advice is much appreciated!