The type is defined as `Union{Int, Nothing}`, this should probably be specified in the type parameters.