fixed explicit conversion of struct (fixes #99)