AWS accessing Dynamic Data using the "Direct" Type

Im wondering how to access Direct data when the data that I need to access is in a structure and all i have is the pointer to that structure. When i use the tag RpGetPtr=SomePtr->SomeElement I get a compile error because the compiler sees the “->” and thinks the comment is ending prematurely. I also tryed this pGetPtr=“SomePtr->SomeElement” and still got the same error. Is it possible to do a direct variable where that varialbe is withing a structure that i only have a pointer to?