Here is a small patch that allows casting a table's row type to the table's supertype if it's a typed table. This is analogous to the existing facility that allows casting a row type to a supertable's row type.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных