class conversion check