cast id to integer