How can I get vertices from a skeletal mesh and a static mesh

Hey,

I would to know how can I get vertices of a skeletal mesh and a static mesh. I would to have a vertex buffer that I can cast to a TArray < FVector>. Any suggestion will be very appreciate. Many thanks.