For almost every class of problem where this is a possible answer, it is the wrong answer.
Zaxo's suggestion is the best so far. Perhaps if you were to describe your intent, we would be able to give you a better kind of solution.
(By wrong, I mean "fragile", "prone to unforseen flaws", and "swatting flies with a sledgehammer".)