Whats the UE5 way of getting property values in c++?

I’ve followed this Get / Set variables by Name | Shooter Tutorial tutorial in UE5.3 but it doesn’t seem to work at FoundFloat = FloatProp->GetPropertyValue_InContainer(Target);. Specifically “GetPropertValue_InContainer”, it tells me “UFloatProperty has no member “GetPropertValue_InContainer””. I’ve tried a whole bunch of stuff to try and get it working but I just can’t figure it out. If you could also help me understand how to do this with transform values, that would much appreciated.