Casting of Eloquent attributes to native types.