Add missing type casts

https://github.com/opencart/opencart/commit/4c705befb2c7a7a93dbec5d9489eace6baab19c8

https://github.com/opencart/opencart/commit/75a265d2d74c707f033df9cbf217fcf6961e93fb