Nope totally impossible. The F18 rules don't allow setups that would make foiling possible. But I don't think that is what you mean.

Buy and old F18 for a few $K (Nacra F18, Hobie tiger etc) and then you just have to change dagger board cases, reinforce transoms and oh yeh build foils.