This is indeed intended. Typelib 'casting' only re-tags a value with a new type, so the binary representations must be the same (this is required since typelib does not know about binary encoding of values) Sylvain