Added type coercing to the right integer for the platform