c sharp convert int to bool code example Example: int to bool c# int i = 0; bool b = Convert.ToBoolean(i);