Convert C casts to reinterpret_cast/static_cast/const_cast.
Merge pull request #15 from jsonn/master

Convert C casts to reinterpret_cast/static_cast/const_cast.