In theory only the cast on getElement is necessary. The type above this var shouldn't be reequired