Minor code change: remove unnecessary cast.
IDEA-115827 IDEA crashes with jayatana