static_castApplies to: cppstatic_cast performs an explicit compile-time checked conversion between compatible C++ types. double x = static_cast<double>(ticks) / ticks_per_rev; See also: data-type, cast