Trouble accessing member LODResources from RenderData

Im trying to access the vertex buffer from a static mesh component.
this works just fine

FStaticMeshRenderData* renderData = StaticMeshComponent->StaticMesh->RenderData;

but when i attempt to access anything from the RenderData such as LODResources, i get

  error C2039: 'LODResources': is not a member of 'TScopedPointer<FStaticMeshRenderData>'

I’ve seen samples of code that work as expected getting PositionVertexBuffer and such for example: this link

but i have had no luck compiling this code myself. has something changed with this in 4.10?

Had the same issue. Try adding:

#include <Runtime/Engine/Public/StaticMeshResources.h>