Casts and mixing primitive types in Java

I've found a nice intro on the topic.