[issue #5] Implement cast operators