Extends Laravel's Collection class to restrict collections to objects of a certain type