Add casting instance traitlet

This is useful if you want an instance trait, but don't want to always create an instance of the class before assigning.  I've made the casting function a method so that it is easily overridden in subclasses to provide custom casting logic.