Why don't you just assign the object to params?