Cast IDs to int