cast id to int