Renamed function wrap to cast. Debug.