fix(general): avoid usage of void* cast in getPublic helper, very dangerous in multi inheritance case!!!