Tidies up bullshit pointer typecasting'