wds: cast pdp_type enum to int to avoid clang considering the range check tautological