Get Float Value from Curve in C++

It seems that the GetFloatValue function can’t be accessed in my own Pawn class now in 4.20.3… Is there any way to solve it?