[fix] Issue with int/string comparison

Variables return different types so the type the comparison fails.

@donnapep @stulees please review. Thanks.