Fix thresh Q cast