support for all cast instructions