Create cast.m