---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 12 Edition"
java_version: 12
chapter: "Chapter 6. The Java Virtual Machine Instruction Set"
section: "6.5.i2c"
heading: "i2c"
parent: "6.5. Instructions"
source: https://docs.oracle.com/javase/specs/jvms/se12/html/jvms-6.html#jvms-6.5.i2c
id: "6.5.i2c"
url: https://jvm.obfuscated.software/jvms/se12/6.5.i2c.html
raw: https://jvm.obfuscated.software/jvms/se12/6.5.i2c.md
---

# i2c

## Operation

Convert `int` to `char`

## Format

```
i2c
```

## Forms

*i2c* = 146 (0x92)

## Operand Stack

..., *value* →

..., *result*

## Description

The *value* on the top of the operand stack must be of type `int`. It is popped from the operand stack, truncated to `char`, then zero-extended to an `int` *result*. That *result* is pushed onto the operand stack.

## Notes

The *i2c* instruction performs a narrowing primitive conversion (JLS §5.1.3). It may lose information about the overall magnitude of *value*. The *result* (which is always positive) may also not have the same sign as *value*.
