Added example of casting record details into a RecordEntity class and returning value from the magic class method.