change sizeof(a_cast) to sizeof(void*)