Remove wrong casts from vector declarations, this would cause errors when