id is converted to int if it consists of digits only