convert category id to int in search args