The CREATE CAST command is't supporting schemas on the type parameters.
A query such as:
CREATE CAST (public.lo AS oid) WITH FUNCTION newoid (public.lo) AS IMPLICIT;
Gives an error. And the problem happens when you create a CAST without the
schema notation, and then try to do a dump/restore cycle.
[]s