This is not great practice and can slow down the code considerably. It is well-documented and discussed here. Unfortunately, most structs in RobustNeuralNetworks.jl have their fields typed with an abstract type (eg: AbstractMatrix{T} is a common one). We should fix this.