# Converting between Data Types

Java converts a smaller number type to a larger one for you; anything else you convert yourself, with a cast for numbers or a parse method such as Integer.parseInt for text.

![Cheat sheet: Converting between Data Types](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/89eb58fec11a481687366776a1ca0130.webp)

- Category: Java
- Level: Apprentice
- Tags: java
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/converting-between-data-types-cheat-sheet
