Fixing ClassCastException as SpotRateSeries is a DoubleTimeSeries<?>