How I Cast FRichCurve in UCurveFloat in My Code?

Hi, I Trying developer TimeLines with dynamic CurveFloats … I could create a timeline and carry it out from an asset curve … But need the curves change their size in seconds / keys and created from it a FRichCurve object with the necessary parameters …
now? as I do the Cast Object to Add AddInterpFloat UCurveFloat in Timeline?

FRichCurve * xEditCurve = new FRichCurve;
 FKeyHandle KeyHandle = xEditCurve->AddKey(5.f, 1200.f);

 xEditCurve->AddKey(0.0f, 0.0f, true, KeyHandle);
 xEditCurve->AddKey(10.0f, 1200.0f, true, KeyHandle);
 xEditCurve->SetKeyTime(KeyHandle, 10.0f);
 xEditCurve->SetKeyInterpMode(KeyHandle, RCIM_Linear);

 TimeLine.AddInterpFloat(>>>xEditCurve<<<(Not UCurveFloat), progressFunction, FName{ TEXT("EFFECTFADE") });

I Trying create UCurveFloat Object more not found Cast Or Copy Data…

UCurveFloat* xCurveFloat = ConstructObject<UCurveFloat>(UCurveFloat::StaticClass());

xCurveFloat.{ Exists Method? }

Did you ever figure out an answer, I’m stuck trying to solve same problem

I think this can be done like this:

auto curve = NewObject<UCurveFloat>();

auto list = curve->GetCurves();
list.Add(FRichCurveEditInfo(richCurve, FName{ TEXT("SomeCurveName") } ));

So important part that is doing “conversion” is

FRichCurveEditInfo(richCurve, FName{ TEXT("SomeCurveName") } )