coding standard says "Type* "... should be....

Avatar* avatar = (Avatar*) node->getLinkedData();