Use List.to_integer instead of list_to_integer