add type assertion for type checking
add type assertion for type checking

sniphpet/react-toastify,sniphpet/react-toastify,fkhadra/react-toastify,fkhadra/react-toastify,fkhadra/react-toastify,fkhadra/react-toastify