optimize cast between assignable bytecode types