Trying to capture the value of a checkbox from a DataGridView. I've tried this a couple of ways but I get System.InvalidCastException. I'm not sure how else to cast this:

Code:
        For i As Integer = 0 To TheGrid.Rows.Count - 1
            If CBool(TheGrid.Rows(i).Cells("CheckOut").Value) = True Then
             'do stuff
            End If
        Next

        For i As Integer = 0 To TheGrid.Rows.Count - 1
            Dim ChkState As Boolean = TheGrid.Rows(i).Cells("CheckOut").Value
            If ChkState = True Then
             'do stuff
            End If
        Next
Is there a specific way to cast as a DataGridViewCheckBoxCell?