casting id from str to int