----EDIT-----
Cracked it. Needed to access the 'name' property of the WP_Post_Type Object. Fully working code for anyone who needs it.
<?php if ( $query2->have_posts() ) : ?>
<?php while ( $query2->have_posts() ) : $query2->the_post();?>
<?php $postType = get_post_type_object(get_post_type()); ?>
<?php if ($postType->name == 'al-comment' ) : ?>
<article class = "comment">
<h2> Comment type </h2><br/>
</article>
<?php elseif ($postType->name == 'al-blog' ) : ?>
<article class = "blog">
<h2> Blog type </h2><br/>
</article>
<?php elseif ($postType->name == 'al-link' ) : ?>
<article class = "link">
<h2> Link type </h2><br/>
</article>
<?php elseif ($postType->name == 'al-ytvid' ) : ?>
<article class = "ytvid">
<h2> YouTube Video type </h2><br/>
</article>
<?php else : ?>
Standard post type <br/>
<?php endif; ?>
<?php endwhile; ?>
<?php else : ?>
<?php echo "Error: 404"; ?>
<?php endif ?>
<?php wp_reset_postdata(); ?>