Rails will automagically find the integer ids if you try to pass in a string, so you shouldn't have to cast this.