I have a void* lhs_value pointing to a sufficiently sized mallocated region of memory. I want to save a rvalue of type bool into it. Don't ask me why I wanted that. I think that this is as simple as casting that pointer to bool* and de referencing it. However the compiler complains. I am apparently doing something wrong. Can you help me with this?
 error: expected '(' for function-style cast or type construction
                *((*bool) lhs_value) = true;
void* lhs_value;
lhs_value = malloc( sizeof(int) );
memset(lhs_value, 0, sizeof(int));
*((*bool) lhs_value) = true;
 
     
     
    