Type conversion
Type conversion (or typecasting) means transfer of data from one data type to another.Implicit conversion happens when the compiler (for compiled languages) or runtime (for script languages likeJavaScript) automatically converts data types. The source code can alsoexplicitly require a conversion to take place.
For example, given the expression"foo" + 1, theNumber1 is implicitly converted into aString and the expression returns"foo1". Given the instructionNumber("0x11"), the string"0x11" is explicitly converted to the number17.
In this article
See also
- Type conversion (Wikipedia)
- Related glossary terms: