fix method matching
try to emit intrinsics during primitive casting