Added the cast back in, tolua doesn't like the change that removed it.