<html><head><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}

p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head><body><div data-externalstyle="false" dir="ltr" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;"><div><br>
<font face="Courier New, Courier, monospace">&gt; vtkDataSet * myDataSet = vtkDataSet::SafeDownCast(myDataSet);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><br>
    &gt; and I get NULL. What I am doing wrong here?<br>
    <br>
</div><div>&nbsp;</div><div>You’re also passing an uninitialized value as the parameter to SafeDownCast if your code looks exactly like your email (or is that a typo?)... You’re lucky to be getting NULL back, and not a crash. The argument to SafeDownCast should be a valid pointer to an instance of&nbsp;some class derived from vtkDataSet in order to return non-NULL.</div><div>&nbsp;</div><div>&nbsp;</div><div>HTH,</div><div>David C.</div><div><br>
  

</div></div></body></html>