Rework data interface to avoid cast. Add travis configuration.