If you want to create an object as a new guid, use the following call:
dim objvar as guid = System.GUID.NewGuid()
Edit Your question is a little unclear when you say "convert." If you already have an object created and assigned, use DirectCast to create an object that will be recognized by Visual Studio.
source share