Fix wrong type

It reduces needless cast.