I would use a variable because it's more readable and less error-prone:
Dim obj = DataGridView.CurrentRow.Cells(9).Value
Dim dueToEnd As Date? = Nothing
If obj IsNot Nothing AndAlso Not DBNull.Value.Equals(obj) Then dueToEnd = CType(obj, Date?)
If dueToEnd.HasValue Then
txtduetoend.Text = dueToEnd.Value.ToString("dd/MM/yyyy")
End If