typecast vote type param to i