Cast object list

Casts list of objects to any other type. Return objects if cast is possible, so new list can be shorter (or empty).