Revert "Added necessary cast"

This reverts commit 0725b5bb12c6c84390bae04088e53fe1eb7c0750.