You can get the n \times n identity matrix using Matrix{eltype(A)}(I,(n,n)).
Matrix{eltype(A)}(I,(n,n))