Set AnimationBP via Code

Hello everybody.

I Have a problem. I want to set my AnimationBP via code. Therefor I’ve found this workaround:
https://forums.unrealengine.com/showthread.php?12980-Animation-not-playing-after-AnimBP-assigned-via-c

But this part doesnt work:

static ConstructorHelpers::FObjectFinder MyAnimClass(TEXT(“AnimBlueprintGeneratedClass’/Game/Character/My_AnimBP.My_AnimBP_C’”));

error message:

" … cannot convert argument 1 from 'UAnimBlueprintGeneratedClass* ’ to ‘UObject *’ … "

Can someone help me? … please …

greetings NewBy