convert item id param to int