Set constrain on parameters to be always int value

Hi!
Does anyone know if and how can we constrain specific parameter to be always int value?
I tried to play with the grad, to be always int and accordingly to change the learning rte but it doesn’t work, for some reason it ignores it
Thanks!