You have to cast from `char_u` to `char` as well (at least in clang):
https://gist.github.com/stefan991/9936549