*BUG* GetSkelMeshComponent() crashing the game

Hi,

For my plugin, I have inherited from UAnimInstance in order to constraints bones and morph target programmatically. Unfortunately, calling GetSkelMeshComponent() method is crashing my editor:

 "Cast of Package /Script/MyPluginModule to SkeletalMeshComponent failed"

This is how I call the function:

USkeletalMeshComponent* skel = this->GetSkelMeshComponent();

Prior to that I would like to retrieve the list of blendshape and bones used with the rig associated with my AnimationInstance. The documentation of GetSkelMEshComponent is not existing.

Thank you for your assistance.