Use reinterpret_cast instead of c-style cast

Authored by gladhorn on Aug 12 2018, 12:18 PM.