I am facing a situation where I need to access child member variables inside the parent class. I know this is against OO principles but I have to deal with a scenario where
static_cast(this)->childMember = 0; should work.
static_cast(this)->childMember = 0;