[Misc] Removed unnecessary cast