I have a function that returns a bitfield.
I later pass this variable to other functions that require only a boolean. In these functions all that is needed is whether the variable is zero or non zero. Is casting a variable as a boolean a valid cast?
uint8_t Wibble = 0x36; some_function((bool)Wibble); //Prototype void some_function(bool b_var);