Add casting helper method to DataKey