typecast carrier id to int