Casting data for analysis