The generic type of the CustomEvent node, has to be exactly the same as the type of the object send with the SendEvent method.
Since I understand that this is not very convenient, I have changed the CustomEvent node, to also be able to work with assignable types. I have attached the changed node for you here for your convenience.
Let me know if that works for you after importing the attached package.