better casting in data