

Another way to make a datetime is by using the d prefix. Affixes look similar to casts but are instructions to treat input as a certain type, rather than to convert into another type. Thanks to this, the queries below won't even run because the parser can already see that the last one won't work.
Another example where you would want to avoid a cast is when using the decimal type, a numeric type used for extra precision or extra large numbers. In all programming languages, a float with too many digits after the decimal point will become imprecise.
But if you use a cast on such a number, the database will first create an imprecise float and then cast it into a decimal. So you don't want to use a cast either.
Using the dec suffix solves the problem by telling the database to treat the input as a decimal instead of a float.