Why does the derived class condition meet or return a null pointer??

auto maptocolor=vtkImageMapToWindowLevelColors::SafeDownCast(temp);

the temp
image

Hello,

Can you, please, post the code that declares the derived class?

best,

Paulo