convert sample size to int