Don't throw an exception then the type is correct ...