Rails 7 added PGSSLMODE, PGSSLCERT, PGSSLKEY, and PGSSLROOTCERT to DBConsole class to load SSL-related environment variables from database config when running bin/rails dbconsole with postgresql.
try_convert for Integer will convert the object into an instance of the class via the implicit conversion method to_int and returns nil if no implicit conversion method is defined.