As long as it isn't 1,1-dimethylhydrazine. The rational for the effectiveness is to formation of the diketopiperazine. That is, tethering a second nitrogen enhances the amide cleavage by intramolecular ring formation.
There was some discussion on nitrile hydrolyses, here:
http://www.chemicalforums.com/index.php?topic=42921.0 Movies suggested using lithium hydroxide, including conditions. I agree with this as a possible receipe for use under basic conditions as movies explained the chemistry. If your amine can tolerate acidic conditions, the alternate method I would suggest is to first treat your phthalimide with base to open the phthalimide. They are very base sensitive and this reaction occurs very readily, as a virtual titration. Then, add a mineral acid and hydrolyze the remaining amide bond.
Two carbonyl groups greatly reduce the basicity of the nitrogen. An amide is far more basic and can be protonated readily. Formation of a tetrahedral intermediate will protonate your amine making it the weakest base and therefore the best leaving group. You can filter off the phthalic acid, neutralize and isolate your amine.