Optimized checkcast/instanceof operations. (#5)