Handle native php types as objects