In previous post Roman Lygin make some patch under AdvApp2Var_MathBase. It's tested and working for 100%%.
In my case I have easy convert like:
int x = *((int*)(&arg)); and It's working under GCC 4 or higher
Also files needs to be patched:
in inc folder, without Roman's patched files:
in sources, without Roman's patched files:
NCollection_IncAllocator.cxx (on the forum has patched too)
In all of this files we have dangerous conversion on 32 / 64 bit types. I don't use cast method because it's not safe too (I think so) if patch with *((int*)(&arg)) conversion is needed I can upload this here.