convert params to int