Added missing toObjectArray(boolean... array)

Got compilation errors when selecting booleans. This seems to work.