title: swift, convert NSIndexpath to Int
body: <p>I have a tableview with a button in each cell. When that is tapped I have a didselectrow function. I want to use my indexpath to get a value from an array that gives the cells contents. How can I convert this NSIndexpath to an int to use in the array?</p>