Convert capacity type from double to int