unable to convert argument

I’m trying to migrate the Mesh Widget plugin ([link][1]) from version 4.23 to 4.25.

there is a variable of the Widgetrenderer type, there is a call to - drawWindow([docs.unrealengine][2]), but it just calls the wrong function, all the arguments are correct.

error C2664: “void FWidgetRenderer::DrawWindow(const FPaintArgs &,UTextureRenderTarget2D *,TSharedRef,FGeometry,FSlateRect,float,bool)”: unable to convert argument 1 from “UTextureRenderTarget2D *” to “FRenderTarget *”

what can be done? I tried Cast, it doesn’t help
Sorry for my English, I’m not a native speaker.

Thank you in advance

HitTestGrid.ToSharedRef().Get()