@matrix is the "(Token*)" cast a typo on the post or is that direct from your code? I would expect that to not compile though so I doubt that's the issue
@Binkle@matrix The pointer gets casted to Token_t* when it's actually assigned anyway. You can do something like int* c = (float*) malloc(sizeof(int)); *c = 1; printf("%d", *c); And it will just print a warning and that's it