You don't necessarily need to convert to an integer unless you think a float might be input to the function. Here, I think you could probably leave that off.