Checkstyle - removed unneeded typecasts