Type cast IDs