I am getting accustomed with vRA types and wanted to get a hint on object conversion approach. Is there a simple way to convert from vCACCAFE:CatalogResource type to VC:VirtualMachine? Preferably without using findAllForType and looping through to find a match.
I see that vCAC resource catalog object has property resourceData which may have useful references to identify vc:virtualmachine. But I am not quite sure how to retrieve details like vm id.