Added conversion between wrappers and primitives.