[Truffle] Use @CreateCast and BooleanCastNode to avoid duplication.