You want it to return const float? why not do :
const float Value = (const float) GetDistanceTo(OtherActor);