If you are using variants to convert between different types, then you can use operator overloading instead: http://www.freepascal.org/docs-html/ref/refse70.html#x166-17300012.5 -- Felipe Monteiro de Carvalho