SharePoint 2010 Client OM: Type Casting Field instances to Field Type instances

If you are using Client Object Model to create Fields, you will be working with the Field class: private static void AddFieldsToProjectsList() { String fldDescriptionXml = String.Format(FieldXml, "<guid>", "Text", "Description", "Description", "TRUE", "TRUE", "TRUE", "TRUE"); String fldDueDateXml = String.Format(FieldXml, "<guid>", "DateTime", "DueDate", "Due Date", "TRUE", "TRUE", "TRUE", "TRUE"); using (ClientContext spContext = new ClientContext(_siteUrl)) { […]