Added implicit pointer cast for Visual Studio