Fixed: type cast build bug