long casting for size calc