Renamed wrap to cast