Code:
typedef struct {
    EntityType ent;
    char name[MAX_STR];
    int  cost
} ProductType;


void moveProduct(void* product){
 //typecast?

}
I have a function moveProduct(void*) and I'm trying to figure out how to type cast the parameter to be a ProductType pointer, so that the product information is available. Does anyone know how to achieve this? I'm a little confused.