This really only works for people that use Legacy controls or have "Auto Face Target" disabled in the character settings.

As a legacy user, instead of making all my spells macros, I just have a macro that just reads "/facetarget" and I bound that macro to my thumb mouse button, so if I am casting a spell and the mob starts to move I just spam click my macro button.