[PLAT-4389] Class cast exception in HullWhiteDiscountingParRateFunction