Remove un needed casting

#2724