make cast type save