>string is a Type. String is a class.
> if ((bool)r["Employed"]) { }Hopefully the last line answers your other question .....
Thanks Viv.
This is what I ended up with: if ((bool)(dt.Rows[0]["Employed"]) == false)
I think I had missed off the brackets surrounding dt.Rows[0]["Employed"]