casting data arduino code example Example: casting arduino int i; float f; f = 3.6; i = (int) f; // now i is 3