Removing uneccesary cast