...> '40 years'::interval> CAST('40 years' as interval)> The former is succinct, the latter SQL-standard ...
as is
interval '40 years'
(give or take some suffix tokens).
- Thomas