Vector conversion mixed rational integers

Something like this seems to work too:

x = [0//2, 1//2, 2//2, 3//2, 4//2]
map(u -> (y=floor(Int,u); u == y ? y : u), x)

# result:
5-element Vector{Real}:
  0
 1//2
  1
 3//2
  2