Make sure size is int