Use C syntax for casting. 'stgCast' appears to have gone away.