Remove the redundant element type without coping the source data

Vector{Int}(Union{Missing, Int}[1, 2, 3])

Edit: Oops, missed that you wanted in-place.

1 Like