convert numpy array to list of integers