Cast id from route to int