convert list to int