adds an object to a long in C++ code example Example: casting to a double in c++ double x; x = (double) 25;