Remove un-necessary explicit upcasting of config entity