I've a struct of the following type

```
typedef struct Edge
{
    int first;
    int second;

}Edge;

```

Which I'm instantiating in my main function and copying into an array

```
Edge h_edges[NUM_EDGES];
for (int i = 0; i < NUM_VERTICES; ++i)
    {
        Edge* e = (Edge*)malloc(sizeof(Edge));
        e->first = (rand() % (NUM_VERTICES+1));
        e->second = (rand() % (NUM_VERTICES+1));
        memcpy(h_edges[i], e, sizeof(e));
    }

```

I keep running into the following error.

```
src/main.cu(28): error: no suitable conversion function from "Edge" to "void *" exists  

```

Line 28 is the line where the memcpy happens. Any help appreciated.