Temporal classes return Long instead of long