code: public static float[] floatArrayCopyOf(CollectionNumber coll) {
          float[] data = new float[coll.size()];
          IteratorNumber iter = coll.iterator();
          int index = 0;
          while (iter.hasNext()) {
              data[index] = iter.nextFloat();
              index++;
          }
          return data;
      }
docs: Copies the content of the collection to an array.
  
  @param coll the collection
  @return the array