The reason one ends up a string is because ```environmentId``` is passed in as a string from the DOM.  Making that an int solves the issue.  I think that is more straightforward and correct than making two ints into strings and comparing them.