get
Retrieves a value from the context with runtime type checking.
Return
the value cast to type T, or null if the key doesn't exist and required is false
Parameters
key
the key to look up
required
if true, throws an exception when the key is not found; defaults to false