Basic support for stopcasting and stopusing