Unnecessary cast