Conversions in java

primary idea behind casting in java