How to Make a Function that Convert Runtime Float Curve into a Float Curve object

Hello there , Im trying to find a way to convert a Runtime Float Curve into a Float Curve ( which could be used as to the Set Curve to a Timeline. I’m not a pro on unreal C++ ; so i suck at this early time

here is so far i did and error im facing