Also needs a cast here

Some places are in fact needing a cast (otherwise they will fail to compile). Getting them fixed.