fix solaris build -- have to use reinterpret_cast