Removed unnecessary type cast