Ensuring that the content of  array are all integers