[libvirt] [PATCH] esx: Cleanup and refactor CastFromAnyType macros