Oh, I'm sorry.
Should be const_cast<foo>(bar), right?
The wiki only provides directions for template *definitions*.