Add method to return an int from the parameters.