That seems like the kind of error that would be given due to the fact that you're grabbing a struct out of a struct, one of which is a pointer and the other isn't. Try first extracting the inner struct to a new variable, then getting the value out of it.
Bookmarks