code: public float[] toFloatArray() {
      float[] copy = new float[size];
      for (int i = 0; i < size; i++) {
        copy[i] = elements[i];
      }
      return copy;
    }
docs: Converts this <code>FloatArray</code> to an array of floats.
  
  @return An array of floats containing the same elements as this array.