I cannot use emulated.Element or uints because it would require rewriting it using custom gates. Is there an easier way?