Convert FVector to actor local space?

Is it possible to convert a position (FVector) from world space to the desired actor local space? Like when in physics a relative coordinate system is considered rather then an absolute one.

I found out a solution using actor transform function “InverseTransformPosition”.

GetTransform().InverseTransformPosition(DestXY)