Type Required "Int", Type Found "Long" error

Type Required "Int", Type Found "Long" error

I am calling a function from within a function.  They function that I am calling needs to receive and Integer, however when I I try to send an Integer (specifically an ID from a related drop-down) I get the attached Error

expression type does not match:
type required:int
type found:long