Access UPhysicsConstraintComponent from Blueprint in C++

Hi,

I have created an Actor Blueprint.
Inside it I have adds Two static meshes connected with a PhysicsConstraintComponent.
I now want to access that PhysicsConstraintComponent through C++.
So I created a custom C++ Class of type Actor and set the CustomActorBlueprint with that class.

How do I access that PhysicsConstraintComponent, so that I can then change its values like the angular motor speed and so on?

Tried this:

TArray<UPhysicsConstraintComponent*> Components;
MyCustomActorObject->GetComponents<UPhysicsConstraintComponent>(Components);

But it tells me that :
error: static_assert failed “‘T’ template parameter to GetComponents must be derived from UActorComponent”

Which for me makes no sesne because this UPhysicsConstraintComponent is derived from UActorComponent.

Any ideas?