Cast priority to int