avoid unnecessary null checks when receiver of '!!' or 'as' operator is not nullable