Added type cast to prevent a Scrutinizer warning