Make casts for placement new duetto safe