pg_restore "CREATE CAST" not executed if using public or pg_catalog schemas
The reason is that type casts do not live in a schema.

If you specify -n public, you will only get objects from that schema, and that does not include the type cast.