You haven’t indicated what you want done, but the interpretation of the string literal as a regclass value is discussed in the regclass type definition. This page rightly does not need to go into detail explaining how types work, there is other documentation for that. Even the lack of a link to that page isn’t a problem IMO, though the rarity of the reg* types could warrant an exception.