type casting id's to int