Type casting error in get_config_object

In reply to vimalambigai:

You will get a better error message if you use
$cast
without the
assert
. get_config_object returns true if it was set, and you can test
via_mon
to see if it is still null.