How Does Java Variable Casting Work And When Can It Go Wrong

How Does Java Variable Casting Work And When Can It Go Wrong