This is needed to resolve build failures on some platforms that support
various EGL backends and, therefore, native types. Note that we can't
use reinterpret_cast<>() as the types involved are not necessarily
pointers or integers e.g. they can be typedef-ed types.