CTD Auto casting corrections