This is why I should get someone to review my java

Missing braces around the cast...