Ok i am using a Caml Query to retrieve a item from a sharepoint list. I get the item loop through the field values to the one i want. My problem is i need to convert that which is a FieldUserValue Datatype to a normal User datatype. There is a method to retrieve FieldUserValue from User but not the other way around...
User Usr;
foreach (ListItem item in items)
{
foreach (var f in item.FieldValues)
{
if (f.Key == "ColumnTitleofDataTypePersonorGroup")
{
//Error Message
Usr = f.Value;
}
}
}
The Detailed ErrorMessages says
Error 2 Cannot implicitly convert type 'object' to 'Microsoft.SharePoint.Client.User'. An explicit conversion exists (are you missing a cast?)
I think I am just missing something obvious..
Thanks for any help in advance..