The actor got the opportunity to work alongside Star Trek royalty.