Compact Objects in General Relativity and Beyond