Add vSphere support

how I can do the cast without this class?