Tests for _cast methods. Closes #20. #76.