It depends on how things are parsed on the Erlang side. If it doesn't do a check to see that a BigNum with a value of 1 can fit in a plain int is when you'd run into trouble. In my experience they do try to do that but I just thought I'd mention it as a thing to check.