Cast baseQual to int.