Использование postgres 12.2:
select '46ee2794-ddd1-4c4b-be04-82908ff1885d'::"uuid" /*works, uuid is a built-in type, not an alias*/
select '1'::"int4" /*works ... int4 is alias for integer*/
select '1'::"integer" /*fails ... integer is built-in type*/
С тех пор я отказался от двойных кавычек, но мне все еще любопытно, почему это ведет себя так, как оно!