How to check the confidence of the Document

Hi,

I believe this is issue with conversion.

double_Confidance = DU_ExtractionResults.ResultsDocument.Fields.Where(Function(field) field.FieldName.Equals(“Field Name”)).Select(Function(actual_field) actual_field.Values.Select(Function(val) val.Confidence))(0)(0)*100

double_Confidance variable type should be double