As far as I'm aware, http://geck.gamesas.com/index.php/Cast is just a remnant from Oblivion which no longer does anything. I've always treated it as a deprecated function and used http://geck.gamesas.com/index.php/CastImmediateOnSelf instead.
I don't think there is any way to set a package target via a script (although this could make a nice
FOSE function), so your best bet would probably be to use your own suggestion of having an XMarker that follows your target
NPC around, although that would mean that you can only use as many of these packages as you have spare XMarkers to use. I would expect the package to update when the XMarker is moved in much the same way as it does
Cipscis