Create cast.m

Don't know how to do this.