```ruby
def indexes
  self.class.indexes.inject({}) do |acc, index|
    acc.tap { |hash| hash[index.name] = index.cast(self) }
  end
end