add demo code for class auto-cast bug