ensure integers in lua