[PLAT-4760] Fix class cast exception in LatestHistoricalMarketDataProviderFactory