Add casting instance traitlet