Make sure shardlevel is an integer.