Offers a nice wrapper around IntArray, that handles resizing the underlying array as needed and provides a trimToSize() method to truncate the underlying array to the current number of elements.
Returns the underlying IntArray, truncating as necessary so that the returned array has the same size as the number of elements in it.