convert collections toArray() s