Error with FleePath. Could Anyone Help?

So I have this Error does anyone know how to fix it?
Code:

Vector2 direction = ((Vector2)FleePath.Construct(transform.position, playerTransform.position, 1)).normalized;

Error:

Assets\Scripts\Enemy\GoldGhostMK2.cs(83,30): error CS0030: Cannot convert type ‘Pathfinding.FleePath’ to ‘UnityEngine.Vector2’

Hi

Your code makes no sense. Where did you find that code?
See https://arongranberg.com/astar/docs/callingpathfinding.html for more information about how to calculate paths.