Removed unnecessary type cast.