Init with correct type