toIntArray

Returns a freshly allocated IntArray containing exactly size elements.