The following works in one of my projects :
Configuration.GetSection("CustomSection").Get<MyConfigType>()
But in another project I get one of two errors :
'IConfiguration' does not contain a definition for 'Get' and the best extension method
Or a similar error of :
'IConfigurationSection' does not contain a definition for 'Get' and the best extension method