BP Struct in C++

I need to use a BP struct in my C++ code. The real project is huge but this simpler one would be good enough to help me understand and solve what´s happening. This link will show a very short video (3 minutes) with the simplest project and structure sample. On it I show a struct with just a single bool field created in BP then replicated to C++ using the option to show the header from the editor itself copied and pasted then try to assign one to the other but they are not compatible Why??
https://drive.google.com/file/d/1-6CjNbq6m8WFg3m2SvuFpt9WsUAKg631/view?usp=drive_link

Well, cause they are not compatible. For being compatible they have to be of the same class(or at least be derived one from another), not just to have the similar fields list.

The proper way would be to define structure in c++ first, expose it to blueprints, and then use it everywhere.

In case replacing bp’s structure isn’t feasible (like you saying “the project is huge”), you may create c++ structure similar to bp one (just like you did in a video) and then write a few bp functions for manually setting the fields of c++ structure based on bp’s one