Static casting Used to convert between types Usually numeric types In Java: double d = (int)(2.0/3.0) + 0.2; In C++, use the builtin static_cast<>() function: double d; d = static_cast(2.0/3.0) + 0.2;