Improving checks for ROSE library
Avoiding some type conversions