Query Custom Post Types

Query WordPress for a particular post type.

If you just want an object and not the entire post loop you can also do this.