fix for Platform\AbstractPlatform comstructor

Needs to be Interface typecase

Don't shoot me, just trying