Helper function for adding bean conversions