Multicondition: Fixed FP when using dynamic_cast