get_post_type on post.php

Why can’t you just globalize $post and then get the post type? e.g.

<?php
global $post;
$post_type = get_post_type( $post->ID );
?>

In what context are you placing this code? In a metabox callback, or what?

(Also: why are you using $_GET data?)