code: public static float[] toFloat(int[] array) {
          float[] n = new float[array.length];
          for (int i = 0; i < array.length; i++) {
              n[i] = (float) array[i];
          }
          return n;
      }
docs: 1-D Integer array to float array.
  
  @param array Integer array.
  @return Float array.