go now needs type assertions

changes from pull request to upstream by Dieterbe