To convert an ArrayList containing Integer objects to a primitive int array in Java, you can use the toArray method and a casting operation.