get rid of windows warning:

warning C4946: reinterpret_cast used between related classes