Converting default Float type to Float32

For instance, if I just define

A = CuArray([Inf for i = 1:20])
typeof(A) gives
CuArray{Float64, 1, CUDA.Mem.DeviceBuffer}

unless I do
A=CuArray{Float32}([Inf for i = 1:20])
typeof(A) gives
CuArray{Float32, 1, CUDA.Mem.DeviceBuffer}

I am looking for a way to do
A = CuArray([Inf for i = 1:20])
so that
typeof(A) gives
CuArray{Float32, 1, CUDA.Mem.DeviceBuffer}

Thank you for the response. Sorry, I am new here and I am not sure how I can convert to code formats.