casting to Class before attempting to alloc, fixes cc warning
casting to Class before attempting to alloc, fixes cc warning

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