Determining type returned from RHIGetNativeDevice()?

Hey, I’m developing a plugin so I don’t control which underlaying rendering API (platform) the host project is using. I can see things such as IsOpenGLPlatform() to help determine the platform that is being used. However I can’t find a way to tell if it’s DX11 or DX12. I need to cast the returned type from RHIGetNativeDevice() to the correct type. Is there a way to know if the project is running DX11 or DX12 at runtime?
Thanks

Answer my own question, the answer is FApp::GetGraphicsRHI()