Java provides the ability to convert from one data type to another within a set of rules. Some conversions are made automatically and some you have to explicitly request.
Here [1] is a discussion of converting between primitive data types.
Here [2] is a discussion of converting between reference (object) data types.
Here [3] is a video about casting.