convert Array[java.lang.Double] to Array[Double]