Bent the data type from List of Integer into primitive int array