Remove unnecessay type_cast to same type