string temp = Membership.GetUser(o.username).UserName;
o.username is a string but the function expects a Guid, how can I convert it to a Guid, or something else which allows me to read the username through the string username ID. Simple cast (Guid)o.username doesn’t work.
How about
Guid.Parse(o.username)ornew Guid(o.username)?