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