I rewrote the "cast with functions" patch and added a few more patches. - Implement cast to bool as !!x instead of (x & 0xFF). - Throw an ICE when asked to perform sign extension. I didn't see any issues with this one. So for now it is not necessary to implement them. Nico.