To convert String to Guid, the snippet is

string userid = "5e5a79ca-321a-4158-ad8c-bdb42c5d02b4";

Guid UserGuidID = new Guid(userid);