add const cast
remove void* cast
Merge pull request #26 from cybozu/remove_warning_for_Wextra

add const cast