Convert List of Integer to array of int in Java