Hi,
Why you want to typecast that? You can directly fetch the value.
Try this:
foreach (DataGridViewRow dataGridRow in dataGridView1.Rows)
{
if (dataGridRow.Cells["YourCheckboxColumn"].Value != null && (bool)dataGridRow.Cells["YourCheckboxColumn"].Value)
{
}
else if (dataGridRow.Cells["YourCheckboxColumn"].Value == null)
{
}
}
--Amit