Spaces after the cast - `CraftPlayer placer = ((EntityPlayer) entity).getBukkitEntity();`

Same goes for the line below.