debug cast