Added check to prevent invalid cast of pointer to a struct-type, fixes #263
Added check to prevent invalid cast of pointer to a struct-type, fixes #263

fredrikbryntesson/rock,jonathanudd/rock,ds84182/rock,thomasfanell/rock,zhaihj/rock,zhaihj/rock,thomasfanell/rock,ooc-lang/rock,kirbyfan64/rock,shamanas/rock,jonathanudd/rock,ooc-lang/rock,marcusnaslund/rock,fasterthanlime/rock,kirbyfan64/rock,cogneco/rock,davidhesselbom/rock,shamanas/rock,magic-lang/rock,davidhesselbom/rock,fredrikbryntesson/rock,fasterthanlime/rock,marcusnaslund/rock,cogneco/rock,ds84182/rock,magic-lang/rock