Remove unnecessary type convertion.