Fix type to cast.