Use safe C++ static_cast in GetInterface calls rather than C cast to prevent crashes like issue #220

git-svn-id: http://graph-studio-next.googlecode.com/svn/trunk@339 c2f33eb2-41b2-391d-4cb4-d9d0608729ba