Vector 3's Relative to the Object's Axis

Okay, so I want to cast a ray in a direction that is relative to my objects axis. Similar to what transform.forward does, but in a direction that I want.

Debug.DrawRay(currentPosition, castDirection);

castDirection is a Vector3(1,0,2)

Ask if you need any clarification, thanks!

maybe you wanna this:

var castDirection = _myTargetObject.transform.localRotation * Vector3(1,0,2);
Debug.DrawRay(currentPosition, castDirection);

this code will do a debugRay to Vector3(1,0,2) local direction of your object!