I was thinking that the wxPerl types would map to the wxWindow types for the most part.  In your example:

    bool tmp = obj->IsKindOf(CLASSINFO(wxFrame));

you are testing for a kind of wxFrame.  In perl I would normally write that using something like:
    my $tmp = UNIVERSAL::isa($obj, 'Wx::Frame');
What do you actually get when you ref() the object in question?  What exactly are you trying to test for?
  The ref() don't work because it only return the name of the package with the class of the object, not the type! In my case I can't know the name of the package to make the association, I need to check the real Wx type of the object before paste to a frame to not crash the app, and if it's not of the desired type set to undef.