Type conversions

An expression of a given type is implicitly converted in the following situations:

You can perform explicit type conversions using a cast expression, as described in Cast expressions. The following sections discuss the conversions that are allowed by either implicit or explicit conversion, and the rules governing type promotions:

Related information