Remove unnecessary type casting