Tagged object to point

Hi,

I created a block styler and it has many blocks. I have a "super point" block. I can get the Tagged object, but I need to convert it to a "specify point" type.
I have never used a "super point" block, but I need it, since it allows me to select a few. The "specify point" selects only one point.
How can I convert nxopen.taggedobject to nxopen.point?
I have such a code on with, but it does not work on line where faa[jj] = obj[1]->Coordinates(); (error: NULL pointer)

PropertyList *sp = superPoint0->GetProperties();
std::vector tivi = sp->GetTaggedObjectVector("SelectedObjects");
std::vector obj(8);
Point3d faa[8];
for (unsigned int jj = 0; jj < tivi.size(); ++jj)
{
obj[jj] = dynamic_cast(tivi[jj]);
faa[jj] = obj[1]->Coordinates();
}