Convert float matrix to abstract float

I have a 2*85 float matrix. And I need to pass it to a function

function func(
    Y::Matrix{T},
)::Matrix{T} where {T<:AbstractFloat}

So I think I have to convert the matrix from float type to Abstractfloat. I have a code that

em = AbstractFloat.(matrix)

But it does not work. What is the correct way to do it?

You don’t have to convert the matrix type.

But when I passed it directly, I got the following error

no method matching func(::Matrix{Float64}, ..)
Closest candidates are:
  func(::Matrix{T}, ...) where T<:AbstractFloat at In[1]:90
  func(::AbstractMatrix, ...) at In[1]:81

Problem solved. Thanks!