1// To convert an unknown type into any other type we can use assertions
2
3
4let demo: unknown = 'Rice Krispies';
5// The above line would throw an error as an unknown variable can
6// only take values of unknown and any type
7
8let demo: unknown = 'The EXTRA cripsy colonel...' as string;
9
10// the as string assertion allows us to set an unknown type to a string type
11// This can be done with any other variable types it is not
12// limited to string
13
14
15
16