PMD: Remove redundant casts