Do a safer pull from GLOBALS, with optional casting.
Be more generic.