support casting string to void*