Well, the reason for the wrapper function suggested above is that the semantics here are *not* the same as CopyElementAs, as a check for the empty value needs to be made before attempting conversion and such.

For now, the function should declare a temporary ExecContext (which will also need a temporary ep)... We'll solve that issue in another pass - functions that convert values like this need to have an execcontext passed into them.