return asList(data.toArray(new Integer[data.size()]));
}
public static Collection<Float> create(FloatList aList) {
List<Float> data = new ArrayList<Float>();
FloatList i = aList;
while (i instanceof NonEmptyFloatList) {
NonEmptyFloatList l = (NonEmptyFloatList) i;
data.add(l.getHead());
i = l.getTail();
}