the arraylist contains a Boolean and
the afore mentioned float array
I think you really really really want to rethink this. You are asking for trouble. Even without generics making heterogeneous collections was a bad idea. A collection should store only like-types (preferably all the same, but parent/child works too).
Essentially if you cannot declare your ArrayList as something like:
List<Foo> list;
list = new ArrayList<Foo>();
then you are making your life far harder than you need to.
What you should really have is something like:
public class Bar
{
private final boolean bool;
private final float[] array;
...
}
and have the method return that instead of the ArrayList.
I once worked at a company that did something like have a number of methods all take Map<String, Object>
where the String was the parameter name and the Object was the value. They did this so they could make the methods more "dynamic" (eg. they didn't want to have to fix things if they changed the # or type of parameters). Thankfully I had left the company already and only header about it from a friend... if not I would have quit on the spot.