void *MyConfigDetail; if (x) { ((TType1 *) MyConfigDetail) = DetailCacheBeans; } else { ((TType2 *) MyConfigDetail) = DetailailCacheHam; } </rpr> But I am unable to access the "MyConfigDetail" elements as MyConfigDetail->Forks = 22; // for example Why not?
That's like designing a mains-powered electrical device that requires you to poke bare wires into live sockets - it will "work", but it is highly dangerous and will cause a spectacular failure with the slightest slip...